package com.team.mp.mapper.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * 千锋郑州Java学科欢迎你
 * @program: MyProject
 * @description: 实体层 和数据库的表一一对应
 * @author: Xuerui
 * @create: 2023-03-27 20:08:52
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("t_serviceinfo_audit")
public class ServiceinfoAudit {
    /**
    *序号 */
     @TableId(type = IdType.AUTO)
    private Integer id;
    /**
    *审核人ID */
    private Integer audid;
    /**
    *服务信息ID */
    private Integer sid;
    /**
    *审核结果 */
    private String result;
    /**
    *审核时间 */
    private Date ctime;
    public void init(){
        ctime = new Date();
    }

    public ServiceinfoAudit(Integer audid, Integer sid, String result) {
        this.audid = audid;
        this.sid = sid;
        this.result = result;
        this.ctime = new Date();
    }
}
